﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Logger.TestLogView
{
    public class TestStep
    {
        #region Private variables

        bool isManual = false;
        string description = string.Empty;
        string expected_result = string.Empty;
        bool isPass = false;
        ArrayList logTrace = null;

        #endregion

        #region Properties

        public string DESCRIPTION
        {
            set { description = value; }
            get { return description; }
        }

        public string EXPECTED_RESULT
        {
            set { expected_result = value; }
            get { return expected_result; }
        }

        public bool IS_MANUAL
        {
            set { isManual = value; }
            get { return isManual; }
        }

        public bool IS_PASS
        {
            set { isPass = value; }
            get { return isPass; }
        }

        public ArrayList LOG_TRACE
        {
            set { logTrace = value; }
            get { return logTrace; }
        }

        #endregion

        public TestStep()
        {
            logTrace = new ArrayList();
        }
        public void Clear()
        {
            logTrace.Clear();
        }

        public void AddToLogTrace(string traceString)
        {
            logTrace.Add(string.Format("{0} {1}", DateTime.Now.ToString("dd-MM-yy hh:mm:ss"),traceString));
        }

    }
}
